package cn.wh.beans.factory.support;

import cn.wh.beans.BeansException;
import cn.wh.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @author: wh
 * @create: 2022-09-25 15:47
 * @description bean 实例化策略
 **/
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor,Object[] args)throws BeansException;

}
